
    <!DOCTYPE html>
    <html lang="zh-CN">
    <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Mode_Clasifier_Prompt - 学习卡片</title>
      <style>
        body { font-family: sans-serif; background-color: #f0f8ff; color: #333; display: flex; flex-direction: column; align-items: center; padding: 50px 20px; }
        .header h1 { font-size: 32px; }
        .grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; width: 100%; max-width: 1200px; }
        .card-container { perspective: 1200px; cursor: pointer; height: 250px; }
        .card { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 0.7s; border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
        .card-container.flipped .card { transform: rotateY(180deg); }
        .card-face { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; display: flex; flex-direction: column; box-sizing: border-box; border-radius: 16px; background-color: #fff; padding: 24px; }
        .card-back { background-color: #f0fff4; transform: rotateY(180deg); justify-content: space-between; }
        .card-category { font-size: 14px; color: #0052d9; margin-bottom: 8px; font-weight: 500; }
        .card-question { font-size: 20px; font-weight: 500; flex-grow: 1; display: flex; align-items: center; justify-content: center; text-align: center; }
        .card-answer-wrapper { flex-grow: 1; overflow-y: auto; }
        .card-answer { font-size: 15px; line-height: 1.7; }
        .card-footer { font-size: 13px; color: #8a919f; border-top: 1px solid #f0f0f0; padding-top: 16px; margin-top: 16px; }
        .card-source { font-size: 13px; color: #8a919f; border-top: 1px solid #f0f0f0; padding-top: 12px; margin-top: 12px; }
      </style>
    </head>
    <body>
      <div class="header">
        <h1>Mode_Clasifier_Prompt - 学习卡片</h1>
      </div>
      <div class="grid-container">
        
    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">理论</div>
          <div class="card-question">该文档中描述的意图分类器的主要工作是什么？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">理论</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">它的工作是根据用户的对话历史，将其意图分类到两个主要类别之一：“Do mode”或“Spec mode”。</div>
          </div>
          <div class="card-source">来源: 文档开头部分</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">技术</div>
          <div class="card-question">意图分类器被要求返回的唯一输出格式是什么？它必须包含哪些属性且遵循什么规则？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">技术</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">它必须只返回一个 JSON 对象，该对象包含三个属性：`chat`、`do` 和 `spec`。这些属性的值代表对每个类别的置信度，并且总和必须始终为 1。</div>
          </div>
          <div class="card-source">来源: 文档开头部分</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">机制</div>
          <div class="card-question">在进行分类时，哪种模式是默认选项？当分类器不确定时，应遵循什么原则？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">机制</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">“Do mode”是默认选项。当分类器不确定时，应遵循的原则是：将用户输入分类为“Do mode”。</div>
          </div>
          <div class="card-source">来源: Category Definitions -> 1. Do mode (DEFAULT CHOICE) 和 IMPORTANT 部分</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">特性</div>
          <div class="card-question">哪些类型的用户请求或句子结构通常会被归类为 'Do mode'？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">特性</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">请求修改代码或工作区、祈使句、以动词原形开头、请求运行命令、寻求信息或解释、以问号结尾或以疑问词（如 who, what, how）开头的请求。</div>
          </div>
          <div class="card-source">来源: Category Definitions -> 1. Do mode (DEFAULT CHOICE)</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">规则</div>
          <div class="card-question">在什么特定且明确的条件下，用户输入才应被归类为 'Spec mode'？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">规则</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">只有当用户输入明确（EXPLICITLY）要求创建规范（spec或specification）、提及创建正式需求文档，或者涉及执行现有规范中的任务时，才应被分类为 'Spec mode'。</div>
          </div>
          <div class="card-source">来源: Category Definitions -> 2. Spec mode (ONLY for specification requests)</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">机制</div>
          <div class="card-question">除了用户的最新消息外，分类器在做决策时还必须考虑什么重要信息？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">机制</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">分类器必须查看用户和模型之间的历史对话，因为之前的消息可能包含与用户最新回复相结合后很重要的上下文信息。</div>
          </div>
          <div class="card-source">来源: 文档中第二条 IMPORTANT 提示部分</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">特性</div>
          <div class="card-question">请举例说明两种会被归类为 'Spec mode' 的用户请求。</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">特性</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">例如：“Create a spec for this feature”（为此功能创建一个规范）和 “Execute task 3.2 from my-feature spec”（从 my-feature 规范中执行任务 3.2）。</div>
          </div>
          <div class="card-source">来源: Category Definitions -> 2. Spec mode (ONLY for specification requests)</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">特性</div>
          <div class="card-question">请举例说明两种会被归类为 'Do mode' 的用户请求。</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">特性</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">例如：“Write a function to reverse a string.”（编写一个反转字符串的函数）和 “How do promises work in JavaScript?”（JavaScript中的promise是如何工作的？）。</div>
          </div>
          <div class="card-source">来源: Category Definitions -> 1. Do mode (DEFAULT CHOICE)</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">规则</div>
          <div class="card-question">分类器在生成最终响应时，必须遵守哪些严格的格式限制？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">规则</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">响应必须只包含一个JSON对象，不能有任何解释、评论、附加文本或代码围栏（```）。</div>
          </div>
          <div class="card-source">来源: 文档中第三条 IMPORTANT 提示部分</div>
        </div>
      </div>
    </div>

      </div>
    </body>
    </html>
